home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / PowerPlant / Everything / DModalTextData.h < prev    next >
Encoding:
Text File  |  1998-10-11  |  1.6 KB  |  71 lines  |  [TEXT/CWIE]

  1. // DModalTextData -- data class for Everything
  2.  
  3. #pragma once
  4.  
  5. #include "AMDataDef.h"
  6.  
  7. class LFileStream;
  8.  
  9.  
  10. const long    idSmall2        = 'Sma2';
  11. const long    idLarge2        = 'Lar2';
  12. const long    idX12346        = 'X146';
  13. const long    idX12345e7        = 'X127';
  14. const long    idPassword2        = 'Pas2';
  15. const long    idDate2        = 'Dat2';
  16. const long    idTime2        = 'Tim2';
  17. const long    idStyled2        = 'Sty2';
  18.  
  19.  
  20. //----------
  21. class DModalTextData : public AMDataDef {
  22. public:
  23.                 DModalTextData ();
  24.     virtual        ~DModalTextData ();
  25.  
  26. public:
  27.     void        CopyFrom        (DModalTextData*        inOther);
  28.     void        ReadFromFile    (LFileStream*        inFile);
  29.     void        WriteToFile        (LFileStream*        inFile);
  30.  
  31. public:        // accessors
  32.     StringPtr    GetSmall2    (Str255        outStr = nil) const;
  33.     void        SetSmall2    (ConstStringPtr    inValue);
  34.     void        SetSmall2    (CharsHandle    inValue);
  35.  
  36.     StringPtr    GetLarge2    (Str255        outStr = nil) const;
  37.     void        SetLarge2    (ConstStringPtr    inValue);
  38.     void        SetLarge2    (CharsHandle    inValue);
  39.  
  40.     SInt32        GetX12346 () const;
  41.     void        SetX12346    (SInt32        inValue);
  42.  
  43.     double        GetX12345e7 () const;
  44.     void        SetX12345e7    (double        inValue);
  45.  
  46.     StringPtr    GetPassword2    (Str255        outStr = nil) const;
  47.     void        SetPassword2    (ConstStringPtr    inValue);
  48.     void        SetPassword2    (CharsHandle    inValue);
  49.  
  50.     LongDateRec        GetDate2 () const;
  51.     void        SetDate2    (LongDateRec        inValue);
  52.  
  53.     LongDateRec        GetTime2 () const;
  54.     void        SetTime2    (LongDateRec        inValue);
  55.  
  56.     StringPtr    GetStyled2    (Str255        outStr = nil) const;
  57.     void        SetStyled2    (ConstStringPtr    inValue);
  58.     void        SetStyled2    (CharsHandle    inValue);
  59.  
  60.  
  61. protected:
  62.     Str255        mSmall2;
  63.     Str255        mLarge2;
  64.     SInt32        mX12346;
  65.     double        mX12345e7;
  66.     Str255        mPassword2;
  67.     LongDateRec        mDate2;
  68.     LongDateRec        mTime2;
  69.     Str255        mStyled2;
  70. };
  71.